/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package da523blab3;

/**
 *
 * @author Macfeast
 */
public class Person {
    private String personName;
    private int personAge;
    
    public Person(String name, int age){
        personName = name;
        personAge = age;
    }
    
    String reverseName(){
        String reverseStringVariable = "";
        for (int i = personName.length() - 1; i != -1; i--) {
            reverseStringVariable += personName.charAt(i);
        }
    return reverseStringVariable;
    }

    /**
     * @return the personName
     */
    public String getPersonName() {
        return personName;
    }

    /**
     * @param personName the personName to set
     */
    public void setPersonName(String personName) {
        this.personName = personName;
    }

    /**
     * @return the personAge
     */
    public int getPersonAge() {
        return personAge;
    }

    /**
     * @param personAge the personAge to set
     */
    public void setPersonAge(int personAge) {
        this.personAge = personAge;
    }
}